// 导入组件
import Vue from 'vue';
import Router from 'vue-router';


// 首页
import index from '@/views/index';
import test from '@/views/HRManager/test'
import person from '@/views/HRManager/person'



// 启用路由
Vue.use(Router);

// 导出路由 
export default new Router({
  routes: [{
    path: '/',
    name: '首页',
    component: index,
    iconCls: 'el-icon-tickets',
    children: [
      {
        path: '/test',
        name: 'test',
        component: test,
        iconCls: 'el-icon-tickets'
      },
      {
        path: '/person',
        name: 'person',
        component: person,
        iconCls: 'el-icon-tickets'
      }
    ]
  }
  ]
})